import traceback


def _mode():
    print("hi---------------------------")
    print(traceback.extract_stack()[-2][2])


def fun1():
    _mode()


def fun2():
    _mode()


if __name__ == '__main__':
    fun2()
    fun1()

